package iwpl.project.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * RoleDetails entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "RoleDetails")
public class RoleDetails implements java.io.Serializable {

	// Fields

	private Integer id;
	private Roles roles;
	private Forms forms;
	private Boolean ins;
	private Boolean del;
	private Boolean upd;
	private Boolean vie;
	private Boolean al;

	// Constructors

	/** default constructor */
	public RoleDetails() {
	}

	/** minimal constructor */
	public RoleDetails(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public RoleDetails(Integer id, Roles roles, Forms forms, Boolean ins,
			Boolean del, Boolean upd, Boolean vie, Boolean al) {
		this.id = id;
		this.roles = roles;
		this.forms = forms;
		this.ins = ins;
		this.del = del;
		this.upd = upd;
		this.vie = vie;
		this.al = al;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RoleID")
	public Roles getRoles() {
		return this.roles;
	}

	public void setRoles(Roles roles) {
		this.roles = roles;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FormID")
	public Forms getForms() {
		return this.forms;
	}

	public void setForms(Forms forms) {
		this.forms = forms;
	}

	@Column(name = "Ins")
	public Boolean getIns() {
		return this.ins;
	}

	public void setIns(Boolean ins) {
		this.ins = ins;
	}

	@Column(name = "Del")
	public Boolean getDel() {
		return this.del;
	}

	public void setDel(Boolean del) {
		this.del = del;
	}

	@Column(name = "Upd")
	public Boolean getUpd() {
		return this.upd;
	}

	public void setUpd(Boolean upd) {
		this.upd = upd;
	}

	@Column(name = "Vie")
	public Boolean getVie() {
		return this.vie;
	}

	public void setVie(Boolean vie) {
		this.vie = vie;
	}

	@Column(name = "Al")
	public Boolean getAl() {
		return this.al;
	}

	public void setAl(Boolean al) {
		this.al = al;
	}

}